<!DOCTYPE html>
<html>

<body>
<include file="public/menu"/>

<div class="main_container" id="videos_page">
<div class="row-fluid">
<h2 class="heading" align="center">培训信息管理</h2>
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>培训信息修改</h5>
              <div class="widget-buttons">
                  <a href="http://www.datatables.net/usage/" data-title="Documentation" class="tip" target="_blank"><i class="icon-external-link"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="tip collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="users" class="table table-striped table-bordered dataTable">
                
            <form action="{:U('edittrains')}" method=POST enctype="multipart/form-data">
            <div class="form-group">
                    <label for="trainid">培训编号</label>

                    <input class="span7 tip"  type="text" name="tr_id" id="tr_id" value={$trains.tr_id} readonly="true">
                </div>
               <div class="form-group">
                    <label for="trainname">培训名称</label>

                    <input class="span7 tip"  type="text" name="tr_name" id="tr_name" placeholder="不超过20字" value={$trains.tr_name}>
                </div>
                <div class="form-group">
                    <label for="trainaddress">地区</label>

                    <input class=span7 tip"  type="text" name="tr_address" id="tr_address" value={$trains.tr_address}>
                </div>
                <div class="form-group">
                    <label for="trainintro">介绍</label>

                    <input class="span7 tip"  type="text" name="tr_intro" id="tr_intro" value={$trains.tr_intro}>
                </div>
                <div class="form-group">
                    <label for="traintel">咨询电话</label>

                    <input class="span7 tip"  type="text" name="tr_tel" id="tr_tel" value={$trains.tr_tel}>

                </div>
                 <div class="form-group">
                    <label for="traintime">培训时间</label>

                    <input class="span7 tip"  type="text" name="tr_time" id="tr_time" value={$trains.tr_time}>

                </div>
                 <div class="form-group">
                    <label for="trainprice">培训价格</label>

                    <input class="span7 tip"  type="text" name="tr_price" id="tr_price" value={$trains.tr_price}>

                </div>

              <label for="videopic">原图片</label>
                   <input type="hidden" value="{$trains.tr_pic}" name="pic" >
                          <div class="fileupload-new img-thumbnail"
                               style="width: 100px; height: 80px;background-color:#5f5f5f">
                              <img src="__PUBLIC__/Uploads/trainphoto/{$trains.tr_pic}">
                          </div>
                          <div class="fileupload-preview fileupload-exists img-thumbnail"
                               style="width: 100px; max-height: 100px;"></div>
                        
                       <input type="file" name="pic" value="{$trains.tr_pic}">
                      
                      
                      </div> 


                <div class="form-group">

                    <input class="btn btn-primary" type="submit" name="submit" value="提交">
                    <input class="btn btn-default" type="reset" name="reset" value="重置">
              
            </form>
            
        </div>
            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->
      </div><!-- main_container -->

<!-- this is userlist -->


</body>
</html>